public class Test07 {
    public static void main(String[] args) {
        int[] arr={1,2,3,4,5};
        try{
            System.out.println(arr[10]);
            System.out.println("...try里面的代码");
        }
        catch(ArrayIndexOutOfBoundsException e){
            System.out.println("索引越界");
        }
        System.out.println("...其他代码");
    }
}
